<?php
require_once 'public/Utils/Utils.php';
/**
 * Description of Image
 *
 * @author Rino7
 */
class Image extends AbstractComponent {
    const CKFINDER_BASEPATH = "Library/ckfinder/";
    const CKFINDER_START_UP_PATH = "Images:/";
    public function __construct($elementName	)
    {
	parent::__construct($elementName);
	parent::addJavascriptCallsToHtml(self::CKFINDER_BASEPATH . "ckfinder.js");
	$this->_saveMode = parent::ONE_TO_ONE;
    }
    public function render()
    {
	ob_start();
        require dirname(__FILE__) . '/_image.phtml';
        $image = ob_get_clean();
        return $image;   
    }
}

?>
